﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CaltechSoft.Service.EntityFW.Entity
{
    public class Portfolio
    {
        public Guid PortfolioId { get; set; }
        public int UserId { get; set; }
        public int TermId{ get; set; }
        public string TermName{ get; set; }
        public Guid OrderId{ get; set; }
        public DateTime OrderDate{ get; set; }
        public DateTime ExpiredDate { get; set; }
        public int? LatestScore { get; set; }
        public int? HighestScore { get; set; }
    }

    public class PortfolioMap : EntityTypeConfiguration<Portfolio>
    {
        public PortfolioMap()
        {
            this.HasKey(t => t.PortfolioId);
            this.ToTable("Portfolio");
        }
    }
}

